<extend name="Base/common"/>

<block name="head"></block>
<block name="body">
    <script src="http://libs.useso.com/js/jquery/2.1.1/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(".navbar-nav li").eq(5).addClass("active");
    </script>
    <script>
//        var rentAjax="{:U('Home/Index/rentAjax','','')}";
    </script>
    <div class="container text-center">
        <div class="booking_title"><h1>課程簡介</h1></div> 
              {$CateGoryList.detail}
    </div>
    <div class="container">
        <div class="booking_title"><h1>租練</h1></div>
        <div class="teach_page">
             
                <div class="swiper-con">
                    <div class="swiper-container swiper1">
                        <div class="swiper-wrapper">
                            <volist name="rent" id="vo" >
                                <div class="gallery swiper-slide ">
                                    <a href="__ROOT__{$vo['image']|get_cover='path'}" rel="prettyPhoto" class="teach_img">
                                        <img src="__ROOT__{$vo['image']|get_cover='path'}" alt="">
                                        <h3>{$vo['title']}</h3><p>{$vo['content']}</p>
                                    </a>
                                </div>
                            </volist>
                        </div>
                    </div>
                    <div class="swiper-button-next swiper-next1"></div>
                    <div class="swiper-button-prev swiper-prev1"></div>
                </div>
        </div>
        <volist name="array" id="house" key="k">
        <div class="row">
            <div class="table_content rent-table">
                  <div class="booking_title2">{$house['a']['houseName']}</div>        
                <table class="table table-border-blue">
                    <thead>
                        <tr>
                            <th>上課地點</th>
                            <th>收費</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>        
                            <td>
                                <select multiple class="form-control table_rowtd" id="adress">  
                                    <volist name="house['list']" id="rent" >                                   
                                      <option class='yes' value="{$rent['id']}">{$rent['address']}</option>       
                                    </volist> 
                                </select>
                            </td>
                            <td>
                                <select multiple class="form-control table_rowtd tdclass" id="time">  
                                    <if condition="session('menber_auth.id')!=''">
                                        <volist name="house['list'][0]['vipprice']" id="price" key="key">
                                            <option>{$price}</option>
                                        </volist> 
                                    <else/>
                                        <volist name="house['list'][0]['price']" id='price' key="key">
                                            <option>{$price}</option>
                                        </volist>   
                                    </if>
                                </select>
                            </td>
                        </tr>
                    </tbody>
                </table>
                        <b>*{$house['a']['note']}</b>
            </div>
            <div class="rent-tel">
                <p>電話：{$house['list'][0]['tel']}</p>
                <p>地址：{$house['list'][0]['add']}</p>
            </div>
        </div>        
        </volist>        
    </div>
</div>
<block name="footer"></block>
</block>